<?php
// include('./includes/dbconnection.php'); // open db connection
require_once('includes/dbfunctions.php');
require_once("../includes/config.php");


if( $_GET['fileID'] ){
    $row = getAssetInfo($_GET['fileID']);

//    $imageName = '../assets/'.trim(strrchr($row['Filename'],'/'),'/');
    $imageName = '../asset.php?id='.$row['ID'];
}


?>

<script type="text/javascript">
    function try_subcall(){
        alert("subcall!");
    }

</script>

<!--
<form>
    <label>Title: </label><input type="text" value="<?PHP echo $row['Title'] ?>"><br/>
    <label>Description: </label><input type="text" value="<?PHP echo $row['Description'] ?>"><br/>
    <label>Path: </label><input type="text" value="<?PHP echo $row['Path'] ?>"><br/>
    <label>File Name: </label><input type="text" value="<?PHP echo $row['Name'] ?>"><br/>
    <label>Asset: </label><input type="text" value="asset.php?id=<?PHP echo $row['ID'] ?>"><br/>

</form>
-->

Title: <?PHP echo $row['Title'] ?><br/>
Description: <?PHP echo $row['Description'] ?><br/>
Path: <?PHP echo $row['Path'] ?><br/>
File Name: <?PHP echo $row['Name'] ?><br/>
Asset: <?PHP echo $row['ID'] ?><br/>



<img src="<?PHP echo $imageName ?>">
